<!DOCTYPE html>
<html>
<head>
<title>Media Queries - scan media feature for "tv"</title>
<script>
  if (window.testRunner) {
    /* If progressive or interlace will ever be queriable for TVs through some
       platform interface, this test needs to be modified by a test override.
       For now, the implementation assumes a modern tv with progressive scan.
       We test that here. */
    internals.settings.setMediaTypeOverride("tv");
  }
</script>
<style>
  @media (scan: progressive) {
    #t1 { color: green; }
  }

  #t2 { color: green; }
  @media (scan: interlace) {
    #t2 { color: red; }
  }

  @media (scan) {
    #t3 { color: green; }
  }
</style>
</head>
<body>
  <div id="t1">Should be green</div>
  <div id="t2">Should be green</div>
  <div id="t3">Should be green</div>
</body>
</html>
